<!-- page content -->
<div class="right_col" role="main">
    <h3>This is Thymeleaf test page.</h3>
    <p>======== download File ========</p>
    <p><a href="/test/file?fileName=canvas.png">下载</a></p>
    <p>======== upload File ========</p>
    <p><span th:text="${error}"></span></p>
    <p><img th:src="${path}"></p>
    <form action="/test/file" method="post" enctype="multipart/form-data" >
        <input type="file" name="file">
        <input type="submit" value="提交"/>
    </form>
    <p>======== th:text ========</p>
    <p><span th:text="${message}"></span></p>
    <p>======== th:if ========</p>
    <p><span th:if="${checked} == true">The checked is true.</span></p>
    <p><span th:if="${currentNumber}&lt;100">Show the number.</span></p>
    <p>======== th:attr ========</p>
    <p><input type="checkbox" th:value="${checked}">love</p>
    <p><img th:src="${src}"/></p>
    <p><a th:href="${href}">baidu</a></p>
    <p>======== th:object ========</p>
    <p>
    <div th:object="${city}">
        <span th:text="${city.cityId}"></span>
        <span th:text="${city.cityName}"></span>
    </div>
    </p>
    <p>======== th:each ========</p>
    <p>
    <ul th:each="city : ${cities}">
        <li th:text="${city.cityName}"></li>
    </ul>
    </p>
    <p>
        <select>
            <option th:each="city : ${cities}" th:value="${city.cityId}"
                    th:text="${city.cityName}"></option>
        </select>
    </p>
    <p>
    <table>
        <tr><td>ID</td><td>Name</td></tr>
        <tr th:each="city : ${cities}">
            <td th:text="${city.cityId}"></td>
            <td th:text="${city.cityName}"></td>
        </tr>
    </table>
    </p>
</div>


